/*
 * @Author: wangqizhang
 * @Date: 2024-04-25 14:28:42
 * @LastEditors: wangqizhang
 * @LastEditTime: 2024-05-05 12:16:01
 * @FilePath: /suixinji-react/src/components/RichText/index.tsx
 * @Description:
 *
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
 */
import ReactQuill from 'react-quill';
import 'react-quill/dist/quill.snow.css'; // 引入样式文件

export const RichText = (props: any) => {
  const { value } = props;
  const change = (value: any) => {
    props.onChange(value);
  };
  return (
    <ReactQuill
      onChange={change}
      value={value}
      style={{ height: '400px' }}
    ></ReactQuill>
  );
};

export default RichText;
